<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script type="text/javascript">
//			这样调用没用 要先定义再调用
			triangle();
		</script>
	</head>
	<body>

	</body>
</html>
<script type="text/javascript">
	//			基本语法
			function triangle(){
				for (var i=1;i<=5;i++) {
					for (var j=0;j<i;j++) {
						document.write("💗");
					}
					document.write("<br/>");
				}
			}
</script>
